<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>行到水穷处,坐看云起时</title>
  </head>
  <body>

    <noscript>
      <strong>We're sorry but demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->


    <script>

        // window.onload = function (){
          // 	// 1rem(1份)就是屏幕宽度的十分之一
          // 	document.documentElement.style.fontSize = document.documentElement.clientWidth / 10 + 'px';
          // }
          
          (function (doc, win) {
              var docEl = doc.documentElement,
                      resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                      recalc = function () {
                          var clientWidth = docEl.clientWidth;
                          if (!clientWidth) return;
                          if(clientWidth>=750){
                              docEl.style.fontSize = '100px';
                          }else{
                              docEl.style.fontSize = 40* (clientWidth / 750) + 'px';
                          }
                      };
              if (!doc.addEventListener) return;
              win.addEventListener(resizeEvt, recalc, false);
              doc.addEventListener('DOMContentLoaded', recalc, false);
          })(document, window);
      
        </script>	
  </body>
</html>
